package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 回答对象 skpl_answer
 *
 * @author ruoyi
 * @date 2022-06-15
 */
public class SkplAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回答id */
    private Long answerId;

    /** 所属回答id */
    @Excel(name = "所属回答id")
    private String answerQuestionId;

    /** 回答人id */
    @Excel(name = "回答人id")
    private String answerUser;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String answerContent;

    /** 回答时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回答时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date answerTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer answerIsdel;

    public void setAnswerId(Long answerId)
    {
        this.answerId = answerId;
    }

    public Long getAnswerId()
    {
        return answerId;
    }
    public void setAnswerQuestionId(String answerQuestionId)
    {
        this.answerQuestionId = answerQuestionId;
    }

    public String getAnswerQuestionId()
    {
        return answerQuestionId;
    }
    public void setAnswerUser(String answerUser)
    {
        this.answerUser = answerUser;
    }

    public String getAnswerUser()
    {
        return answerUser;
    }
    public void setAnswerContent(String answerContent)
    {
        this.answerContent = answerContent;
    }

    public String getAnswerContent()
    {
        return answerContent;
    }
    public void setAnswerTime(Date answerTime)
    {
        this.answerTime = answerTime;
    }

    public Date getAnswerTime()
    {
        return answerTime;
    }
    public void setAnswerIsdel(Integer answerIsdel)
    {
        this.answerIsdel = answerIsdel;
    }

    public Integer getAnswerIsdel()
    {
        return answerIsdel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("answerId", getAnswerId())
            .append("answerQuestionId", getAnswerQuestionId())
            .append("answerUser", getAnswerUser())
            .append("answerContent", getAnswerContent())
            .append("answerTime", getAnswerTime())
            .append("answerIsdel", getAnswerIsdel())
            .toString();
    }
}
